"""
@Time ： 2022/12/2 8:53
@Auth ： 陈杰 200320501042
@E-mail : 1612845322@qq.com
"""
from pymysql import *

conn=connect(host='localhost',port=3306,user='root',password='cj2001..',charset='utf8')

sql = """
    CREATE DATABASE Bookstore DEFAULT CHARACTER SET utf8;
"""
cursor=conn.cursor()
cursor.execute(sql)
print("创建bookstore数据库成功！")
cursor.close()
conn.close()